package com.shfl.models;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

import java.io.Serializable;

public class GoodsInfo implements Serializable {


    private SimpleStringProperty goodsName;

    private SimpleIntegerProperty goodsId;

    private SimpleStringProperty useCount;

    private SimpleStringProperty payMoney;

    public GoodsInfo(String goodsName ,Integer goodsId, String useCount, String payMoney) {
        this.goodsName = new SimpleStringProperty(goodsName);
        this.goodsId = new SimpleIntegerProperty(goodsId);
        this.useCount = new SimpleStringProperty(useCount);
        this.payMoney = new SimpleStringProperty(payMoney);
    }

    public int getGoodsId() {
        return goodsId.get();
    }

    public SimpleIntegerProperty goodsIdProperty() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId.set(goodsId);
    }

    public String getUseCount() {
        return useCount.get();
    }

    public SimpleStringProperty useCountProperty() {
        return useCount;
    }

    public void setUseCount(String useCount) {
        this.useCount.set(useCount);
    }

    public String getPayMoney() {
        return payMoney.get();
    }

    public SimpleStringProperty payMoneyProperty() {
        return payMoney;
    }

    public void setPayMoney(String payMoney) {
        this.payMoney.set(payMoney);
    }

    public String getGoodsName() {
        return goodsName.get();
    }

    public SimpleStringProperty goodsNameProperty() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName.set(goodsName);
    }
}
